package com.april.pattern.behavioral.mediator;

import org.junit.jupiter.api.Test;

/**
 * @author April
 * @version V1.0.0
 * @date 2019/07/09 12:06
 * @description 中介者模式
 */
public class MediatorTest {
    @Test
    public void mediatorTest() {
        User user = new User("April");
        User tom= new User("Tom");

        user.sendMessage(" Hey! Tom! Let's learn Design Pattern");
        tom.sendMessage("OK! April");
    }
}
